import ajax from '@/api/apiConfig.js'

/* 巡检记录任务列表
*/
export const getInspectTaskListForClient = (data) => {
  return ajax.get('inspectionNew/getInspectTaskListForClient', data)
}

/* 巡检记录任务点位列表
*/
export const getInspectTaskPointListForClient = (data) => {
  return ajax.get('inspectionNew/getInspectTaskPointListForClient', data)
}

/* 巡检记录统计
*/
export const getInspectTaskCount = (data) => {
  return ajax.get('inspectionNew/getInspectTaskCount', data)
}

/* 点位类别列表
*/
export const getInspectPointTypeList = (data) => {
  return ajax.get('inspectionNew/getInspectPointTypeList', data)
}

/* 删除点位类别
*/
export const delInspectPointType = (data) => {
  return ajax.post('inspectionNew/delInspectPointType', data)
}

/* 保存/编辑巡检点位类型
*/
export const addInspectPointType = (data) => {
  return ajax.post('inspectionNew/addInspectPointType', data)
}

/* 巡检点位统计
*/
export const getInspectPointNewCountOrg = (data) => {
  return ajax.get('inspectPointNew/getInspectPointNewCountOrg', data)
}

/* 巡检点位列表
*/
export const getInspectPointNewList = (data) => {
  return ajax.get('inspectPointNew/getInspectPointNewList', data)
}

/* 新增点位
*/
export const addInspectPointNew = (data) => {
  return ajax.post('inspectPointNew/addInspectPointNew', data)
}

/* 编辑点位
*/
export const updateInspectPointNewById = (data) => {
  return ajax.post('inspectPointNew/updateInspectPointNewById', data)
}

/* 删除点位
*/
export const delInspectPointNewById = (data) => {
  return ajax.post('inspectPointNew/delInspectPointNewById', data)
}

/* 各单位巡检路线统计
*/
export const getTeamPointAreaList = (data) => {
  return ajax.get('inspectionNew/getTeamPointAreaList', data)
}

/* 单位巡检路线列表
*/
export const getInspectRouteList = (data) => {
  return ajax.get('inspectionNew/getInspectRouteList', data)
}

/* 删除巡检路线记录
*/
export const delInspectRoute = (data) => {
  return ajax.post('inspectionNew/delInspectRoute', data)
}

/* 更新路线记录
*/
export const addInspectRoute = (data) => {
  return ajax.post('inspectionNew/addInspectRoute', data)
}

/* 获取单位巡检计划列表
*/
export const getInspectPlanList = (data) => {
  return ajax.get('inspectionPlanNew/getInspectPlanList', data)
}
/* 删除巡检计划记录
*/
export const delInspectPlan = (data) => {
  return ajax.post('inspectionPlanNew/delInspectPlan', data)
}
/* 停用、启用巡检计划
*/
export const isEnable = (data) => {
  return ajax.post('inspectionPlanNew/isEnable', data)
}
/* 更新巡检计划
*/
export const updateInspectPlan = (data) => {
  return ajax.post('inspectionPlanNew/updateInspectPlan', data)
}
/* 每日巡检点位完成率统计
*/
export const getTimeCycleStatisticsForClient = (data) => {
  return ajax.get('inspectionNew/getTimeCycleStatisticsForClient', data)
}
/* 巡检员巡检完成情况
*/
export const getInspectPersonStatisticsForClient = (data) => {
  return ajax.get('inspectionNew/getInspectPersonStatisticsForClient', data)
}
/* 业主单位巡检完成率TOP10
*/
export const getOrgStatisticsForClient = (data) => {
  return ajax.get('inspectionNew/getOrgStatisticsForClient', data)
}

/* 获取单条巡检记录的统计
*/
export const getInspectTaskPointCountForClient = (data) => {
  return ajax.get('inspectionNew/getInspectTaskPointCountForClient', data)
}
